﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TodayRush.aspx.cs" Inherits="Goods_TodayRush" %>

<%@ Register Src="~/Goods/RelateCategoryAndBrand.ascx" TagName="OtherCategory" TagPrefix="Nav" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<%@ Import Namespace="Shopping.BLL" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>今日抢购</title>
    <link href="~/styles/common.css" rel="stylesheet" type="text/css" />
    <link href="~/styles/common_head_footer.css" rel="stylesheet" type="text/css" />
    <link href="~/styles/commonLeft.css" rel="stylesheet" type="text/css" />
    <link href="~/styles/bulk.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/jsbase/jquery.js"></script>
     <script language="javascript">
     var userid = <%=this.UserID %>;
    </script>
</head>
<body>
 
   <!--#include file="~/Public/top.shtml" --> 


<!--importedContent start-->
<div id="content">
  <div id="contentLeft">
    
      <Nav:OtherCategory ID="ucRelate"  runat="server" />

    <!--titleThree end-->
    
    <!--销售排行榜 start-->  
     <h1 class="titleThree titleFive">最新降价商品</h1>
     <ul class="recommend">
      <!--#include file="~/AutoGenerate/list-zuixinjiangjia.htm" -->
     </ul>
     <!--销售排行榜 end-->
    <!--#include file="~/AutoGenerate/list-leftad.htm" -->
     
  </div>
  <!--contentLeft end-->
  
  <!--bulkRight start-->
  <div id="bulkRight">
    
     <div id="bannerBox">
      <div class="bannerLeft">
      
     <!--#include file="~/AutoGenerate/TodayRush-centerAd.htm" -->
      
      </div>
      <div class="dkBox">
        <h1 class="titleThree titleFive"><a href="">点客动态</a></h1>
        <ul class="honey">
         <%if (listOfNews != null)
           {
               foreach(News n in listOfNews)
               {
                %>
                <li><a href="/News/<%=n.NewsID %>.html" target="_blank" style="color:<%=n.Colors %>" title="<%=n.Title %>"><%=Utility.GetMaxString(n.Title,26) %></a></li>
       
         <%}
           } %>
         

       </ul>
      </div>
    </div>
    <!--bannerBox end--> 
    <p class="redLine"></p>

    <!--navOne start--> 
    <div id="navOne">
    
      <div class="navOneLeft">
        <ul>
          <li class="sort">排序:</li>
          <li class="navLiOne <%=q.Sorts==7?"curbj":"" %>"><a href="<%=Utility.GetNewUrl("Sorts","7",false)%>">销量</a></li>
          <li class="navLiTwo <%=q.Sorts==5 ||q.Sorts==6 ?"curbj":"" %>">
          <%
              if (q.Sorts == 5)
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts", "6", false) + "\">价格↓</a>");
              else if(q.Sorts ==6)
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts", "5", false) + "\">价格↑</a>");
              else
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts", "5", false) + "\">价格</a>");
           %>
          </li>
          <li class="navLiThree <%=q.Sorts==9 ||q.Sorts==10 ?"curbj":"" %>">
          <%
              if (q.Sorts == 9)
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts", "10", false) + "\">评价数↓</a>");
              else if(q.Sorts ==10)
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts", "9", false) + "\">评价数↑</a>");
              else
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts", "9", false) + "\">评价数</a>");
           %>
           </li>
          <li class="navLiFour <%=q.Sorts==13 ||q.Sorts==14 ?"curbj":"" %>">
          <%
              if (q.Sorts == 13)
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts","14",false) + "\">上架时间↓</a>");
              else if(q.Sorts ==14)
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts", "14", false) + "\">上架时间↑</a>");
              else
                  Response.Write("<a href=\"" + Utility.GetNewUrl("Sorts", "13", false) + "\">上架时间</a>");
           %>
           </li>
        </ul>
      </div>

      <div class="navOneRight">
        <ul>
        <!--
          <li class="pageOne">1/6</li>
          <li class="page">&lt;上一页</li>
          <li class="page">下一页&gt;</li>
          -->
        </ul>
      </div>

    </div>
    <!-- navOne end--> 
    <p class="redLine" ></p>
    
    <!--moreProductBox start-->
    <div id="moreProductBox">
      <ul>
      <%
          if (listOfGoods != null)
          {
              for (int i = 0; i < listOfGoods.Count; ++i)
              {
                  GoodsInfo g = listOfGoods[i];
        %>
        <li>
          <p><a href=" <%=bllUrl.GetGoodsInfoUrl(g.BaseInfo.GoodsID) %>" target="_blank" title="<%=g.BaseInfo.GoodsName %>"><img src="<%=g.MainPicture.SmallPictureUrl %>" border="0"/></a></p>
          <p style=" height:30px"><a href=" <%=bllUrl.GetGoodsInfoUrl(g.BaseInfo.GoodsID) %>" target="_blank" title="<%=g.BaseInfo.GoodsName %>"><%=g.BaseInfo.GoodsName%></a></p>
          <p class="centerPone"><span class="dolorRed">Y<%=Utility.FormatMoneyStr(g.BaseInfo.SalePrice)%></span></p>
          <p class="personComments">已有<%=g.CommentCounts%>人评论</p>
           <p class="buttonOne"><input class="buyButton" type="button" onclick="location.href='/home/ShoppingCarts.aspx?GoodsID=<%=g.BaseInfo.GoodsID %>&BackUrl='+location.href;" /><input class="collectionButton" type="button" onclick="AddToFavorite(<%=g.BaseInfo.GoodsID %>);"/></p>
        </li>
        <%  }

            for (int i = listOfGoods.Count % 4; i < 4; ++i)
            {
            %>
           <li>
          <p></p>
          <p style=" height:30px"></p>
          <p class="centerPone"></p>
          <p class="personComments"></p>
          <p class="buttonOne"></p>
        </li>
            <%
            }
              
              
            %>
            
            <%  
          }
          else
          {
              Response.Write("<li style=\"width:100%; font-size:14px; color:red;\">");
              Response.Write("[ 未找到任何商品信息！ ]");
              Response.Write("</li>");
              
          } %>

      </ul>
    </div>
    <!--moreProductBox end-->

    <div id="pageTwoBox">
       <%
          if (listOfGoods != null)
          { %>
        <span class="pageN" >
         <%=Utility.GetPageLine(Utility.GetWebPageUrlNoCurPage(), q.CurPage, q.PageSize, 10, q.TotalCount)%>       
       </span>
       <%} %>
    </div>


  </div>
  <!--bulkRight end-->
</div>
<!--importedContent end-->

<!--#include file="~/Public/bottom.shtml" -->


</body>
</html>
